<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="vue">
    <!--ul 列表-->
    <ul>
        <my-component-li></my-component-li>
    </ul>
</div>

<script type="text/javascript">
    Vue.component("my-component-li",{
       template:'<li>Hello  li </li>'
    });
    var vm = new Vue({
        el: '#vue',
    });
</script>
</body>
</html>